Integrand size = 26, antiderivative size = 57 \[ \int \sqrt {a-a \sin ^2(e+f x)} \tan ^2(e+f x) \, dx=\frac {\text {arctanh}(\sin (e+f x)) \sqrt {a \cos ^2(e+f x)} \sec (e+f x)}{f}-\frac {\sqrt {a \cos ^2(e+f x)} \tan (e+f x)}{f} \]
[Out]
Time = 0.14 (sec) , antiderivative size = 57, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.192, Rules used = {3255, 3286, 2672, 327, 212} \[ \int \sqrt {a-a \sin ^2(e+f x)} \tan ^2(e+f x) \, dx=\frac {\sec (e+f x) \sqrt {a \cos ^2(e+f x)} \text {arctanh}(\sin (e+f x))}{f}-\frac {\tan (e+f x) \sqrt {a \cos ^2(e+f x)}}{f} \]
[In]
[Out]
Rule 212
Rule 327
Rule 2672
Rule 3255
Rule 3286
Rubi steps \begin{align*} \text {integral}& = \int \sqrt {a \cos ^2(e+f x)} \tan ^2(e+f x) \, dx \\ & = \left (\sqrt {a \cos ^2(e+f x)} \sec (e+f x)\right ) \int \sin (e+f x) \tan (e+f x) \, dx \\ & = \frac {\left (\sqrt {a \cos ^2(e+f x)} \sec (e+f x)\right ) \text {Subst}\left (\int \frac {x^2}{1-x^2} \, dx,x,\sin (e+f x)\right )}{f} \\ & = -\frac {\sqrt {a \cos ^2(e+f x)} \tan (e+f x)}{f}+\frac {\left (\sqrt {a \cos ^2(e+f x)} \sec (e+f x)\right ) \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\sin (e+f x)\right )}{f} \\ & = \frac {\text {arctanh}(\sin (e+f x)) \sqrt {a \cos ^2(e+f x)} \sec (e+f x)}{f}-\frac {\sqrt {a \cos ^2(e+f x)} \tan (e+f x)}{f} \\ \end{align*}
Time = 0.05 (sec) , antiderivative size = 40, normalized size of antiderivative = 0.70 \[ \int \sqrt {a-a \sin ^2(e+f x)} \tan ^2(e+f x) \, dx=\frac {\sqrt {a \cos ^2(e+f x)} \sec (e+f x) (\text {arctanh}(\sin (e+f x))-\sin (e+f x))}{f} \]
[In]
[Out]
Time = 0.98 (sec) , antiderivative size = 96, normalized size of antiderivative = 1.68
method | result | size |
default | \(-\frac {\cos \left (f x +e \right ) \sqrt {a \left (\sin ^{2}\left (f x +e \right )\right )}\, \left (\sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (f x +e \right )\right )}-\ln \left (\frac {2 \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (f x +e \right )\right )}+2 a}{\cos \left (f x +e \right )}\right ) a \right )}{\sqrt {a}\, \sin \left (f x +e \right ) \sqrt {a \left (\cos ^{2}\left (f x +e \right )\right )}\, f}\) | \(96\) |
risch | \(\frac {i \sqrt {\left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )^{2} a \,{\mathrm e}^{-2 i \left (f x +e \right )}}\, {\mathrm e}^{2 i \left (f x +e \right )}}{2 f \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )}-\frac {i \sqrt {\left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )^{2} a \,{\mathrm e}^{-2 i \left (f x +e \right )}}}{2 \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right ) f}-\frac {\ln \left ({\mathrm e}^{i f x}-i {\mathrm e}^{-i e}\right ) \sqrt {\left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )^{2} a \,{\mathrm e}^{-2 i \left (f x +e \right )}}\, {\mathrm e}^{i \left (f x +e \right )}}{f \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )}+\frac {\ln \left ({\mathrm e}^{i f x}+i {\mathrm e}^{-i e}\right ) \sqrt {\left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )^{2} a \,{\mathrm e}^{-2 i \left (f x +e \right )}}\, {\mathrm e}^{i \left (f x +e \right )}}{f \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )}\) | \(238\) |
[In]
[Out]
none
Time = 0.32 (sec) , antiderivative size = 55, normalized size of antiderivative = 0.96 \[ \int \sqrt {a-a \sin ^2(e+f x)} \tan ^2(e+f x) \, dx=-\frac {\sqrt {a \cos \left (f x + e\right )^{2}} {\left (\log \left (-\frac {\sin \left (f x + e\right ) - 1}{\sin \left (f x + e\right ) + 1}\right ) + 2 \, \sin \left (f x + e\right )\right )}}{2 \, f \cos \left (f x + e\right )} \]
[In]
[Out]
\[ \int \sqrt {a-a \sin ^2(e+f x)} \tan ^2(e+f x) \, dx=\int \sqrt {- a \left (\sin {\left (e + f x \right )} - 1\right ) \left (\sin {\left (e + f x \right )} + 1\right )} \tan ^{2}{\left (e + f x \right )}\, dx \]
[In]
[Out]
none
Time = 0.35 (sec) , antiderivative size = 73, normalized size of antiderivative = 1.28 \[ \int \sqrt {a-a \sin ^2(e+f x)} \tan ^2(e+f x) \, dx=\frac {\sqrt {a} {\left (\log \left (\cos \left (f x + e\right )^{2} + \sin \left (f x + e\right )^{2} + 2 \, \sin \left (f x + e\right ) + 1\right ) - \log \left (\cos \left (f x + e\right )^{2} + \sin \left (f x + e\right )^{2} - 2 \, \sin \left (f x + e\right ) + 1\right ) - 2 \, \sin \left (f x + e\right )\right )}}{2 \, f} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 127 vs. \(2 (53) = 106\).
Time = 0.58 (sec) , antiderivative size = 127, normalized size of antiderivative = 2.23 \[ \int \sqrt {a-a \sin ^2(e+f x)} \tan ^2(e+f x) \, dx=-\frac {{\left (\log \left ({\left | \frac {1}{\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )} + \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 2 \right |}\right ) \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - 1\right ) - \log \left ({\left | \frac {1}{\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )} + \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 2 \right |}\right ) \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - 1\right ) - \frac {4 \, \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - 1\right )}{\frac {1}{\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )} + \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )}\right )} \sqrt {a}}{2 \, f} \]
[In]
[Out]
Timed out. \[ \int \sqrt {a-a \sin ^2(e+f x)} \tan ^2(e+f x) \, dx=\int {\mathrm {tan}\left (e+f\,x\right )}^2\,\sqrt {a-a\,{\sin \left (e+f\,x\right )}^2} \,d x \]
[In]
[Out]